package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

public class UserHouseBar extends DataObject {

    private long userId;

    private int barPos; //钱庄柜台位置

    private int patronsId; //派遣门客id

    private long openTime; //激活这个柜台的时间

    private long lastRewardTime; //上次领取奖励时间

    private long surplusTime; //领取奖励剩下的时间，比如10分钟可以领一次奖励，现在过了18分钟，会累计八分钟，下次只要派遣2分钟就能领取了

    private long dispatchTime; //门客派遣时间

    private String toadSilver; //生成的财运值

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getBarPos() {
        return barPos;
    }

    public void setBarPos(int barPos) {
        if(this.barPos != barPos){
            this.barPos = barPos;
            setUpdateOption();
        }
    }

    public int getPatronsId() {
        return patronsId;
    }

    public void setPatronsId(int patronsId) {
        if(this.patronsId != patronsId){
            this.patronsId = patronsId;
            setUpdateOption();
        }
    }

    public long getLastRewardTime() {
        return lastRewardTime;
    }

    public void setLastRewardTime(long lastRewardTime) {
        if(this.lastRewardTime != lastRewardTime){
            this.lastRewardTime = lastRewardTime;
            setUpdateOption();
        }
    }

    public long getSurplusTime() {
        return surplusTime;
    }

    public void setSurplusTime(long surplusTime) {
        if(this.surplusTime != surplusTime){
            this.surplusTime = surplusTime;
            setUpdateOption();
        }
    }

    public long getOpenTime() {
        return openTime;
    }

    public void setOpenTime(long openTime) {
        if(this.openTime != openTime){
            this.openTime = openTime;
            setUpdateOption();
        }
    }

    public long getDispatchTime() {
        return dispatchTime;
    }

    public void setDispatchTime(long dispatchTime) {
        if(this.dispatchTime != dispatchTime){
            this.dispatchTime = dispatchTime;
            setUpdateOption();
        }
    }

    public String getToadSilver() {
        return toadSilver;
    }

    public void setToadSilver(String toadSilver) {
        if(!toadSilver.equals(this.toadSilver)){
            this.toadSilver = toadSilver;
            setUpdateOption();
        }
    }
}
